<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/Sys_Info.js此处编写
 -->
<template>
    <div>
        <view-grid :columns="columns"
                   :detail="detail"
                   :editFormFileds="editFormFileds"
                   :editFormOptions="editFormOptions"
                   :searchFormFileds="searchFormFileds"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/system/Sys_Info.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'Id',
                    footer: "Foots",
                    cnName: '系统信息',
                    name: 'Sys_Info',
                    url: "/Sys_Info/",
                    sortName: "CreateDate"
                },
                extend: extend,
                editFormFileds: {"ParentID":"","SystemName":"","SystemEnName":"","SystemDesc":""},
                editFormOptions: [[{"dataKey":"systemname","title":"所属系统","field":"ParentID","colSize":12,"type":"select"}],
                              [{"title":"系统名称","field":"SystemName","required":true,"type":"text"},
                               {"title":"系统英文名","field":"SystemEnName","type":"text"}],
                              [{"title":"系统描述","field":"SystemDesc","colSize":12,"type":"textarea"}]],
                searchFormFileds: {"SystemName":"","SystemEnName":"","SystemDesc":"","ParentID":""},
                searchFormOptions: [
                    [{"dataKey":"systemname","title":"所属系统","field":"ParentID","colSize":12,"type":"select"}],
                    [{"title":"系统名称","field":"SystemName","type":"text"},{"title":"系统英文名","field":"SystemEnName","type":"text"}],
                    [{"title":"系统描述","field":"SystemDesc","colSize":12,"type":"textarea"}]],
                columns: [{field:'Id',title:'Id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ParentID',title:'所属系统',type:'string',bind:{ key:'systemname'},width:120,align:'left'},
                       {field:'SystemName',title:'系统名称',link:true,type:'string',width:120,align:'left',sortable:true},
                       {field:'SystemEnName',title:'系统英文名',type:'string',width:120,align:'left'},
                       {field:'SystemDesc',title:'系统描述',type:'string',width:120,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'Modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'ModifyID',title:'ModifyID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'Creator',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'CreateID',title:'CreateID',type:'int',width:120,hidden:true,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
